import Vue from 'vue'
import App from './App.vue'
import '@/assets/common/common.css'
import router from '@/router'
import store from '@/store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import {nanoid} from 'nanoid'
import axios from 'axios'

Vue.config.productionTip = false
Vue.prototype.$nanoid = nanoid
Vue.prototype.$axios = axios

Vue.use(ElementUI)

new Vue({
  router,
  store,
  // 注册全局事件总线
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: h => h(App),
}).$mount('#app')
